#import "../fragments/state.fragment.graphql"
#import "~/graphql_shared/fragments/page_info.fragment.graphql"

query getStates($projectPath: ID!, $first: Int, $last: Int, $before: String, $after: String) {
  project(fullPath: $projectPath) {
    id
    terraformStates(first: $first, last: $last, before: $before, after: $after) {
      count
      nodes {
        ...State
      }
      pageInfo {
        ...PageInfo
      }
    }
  }
}
